package com.ffms.entity;

import java.util.Date;

public class ZhiChu {

    private int id;
    private String why;
    private String money;
    private Date date;
    private String way;
    private int mzsid;//外键
    private FamilyMember familyMember;

    public ZhiChu( String why, String money, Date date, String way, int mzsid) {

        this.why = why;
        this.money = money;
        this.date = date;
        this.way = way;
        this.mzsid = mzsid;
    }

    public ZhiChu(int id, String why, String money, Date date, String way, FamilyMember familyMember) {
        this.id = id;
        this.why = why;
        this.money = money;
        this.date = date;
        this.way = way;
        this.familyMember = familyMember;
    }

    public ZhiChu(int id, String why, String money, String way) {
        this.id = id;
        this.why = why;
        this.money = money;
        this.way = way;

    }
    public ZhiChu(int mzsid, String money) {
        this.mzsid = mzsid;
        this.money = money;

    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getWhy() {
        return why;
    }

    public void setWhy(String why) {
        this.why = why;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    public int getMzsid() {
        return mzsid;
    }

    public void setMzsid(int mzsid) {
        this.mzsid = mzsid;
    }

    public FamilyMember getFamilyMember() {
        return familyMember;
    }

    public void setFamilyMember(FamilyMember familyMember) {
        this.familyMember = familyMember;
    }

    @Override
    public String toString() {
        return "ZhiChu{" +
                "id=" + id +
                ", why='" + why + '\'' +
                ", money='" + money + '\'' +
                ", date=" + date +
                ", way='" + way + '\'' +
                ", mssid=" + mzsid +
                ", familyMember=" + familyMember +
                '}';
    }
}
